package top.infopub.mgr.cap.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.cap.domain.RpiApplyDomain;
import top.infopub.model.cap.RpiApplyDetail;

/** 融资还本付息申请明细(CAP_RPI_APPLY_DETAIL) **/
public interface RpiApplyDetailDao extends GenericDao<RpiApplyDetail, String> {

	/**
	 * 批量添加融资还本付息申请明细
	 */
    void insertByBatch(@Param("list")List<RpiApplyDetail> rpiApplyDetails);
	
    /**
     * 根据申请id查询本金总额
     */
    RpiApplyDomain selectByApplyId1(@Param("applyId")String applyId);
    
    /**
     * 根据申请id查询利息总额
     */
    RpiApplyDomain selectByApplyId2(@Param("applyId")String applyId);
    
}